.class Lcom/waiqin365/base/login/ai;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginHomeActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginHomeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 3

    if-eqz p2, :cond_2

    const-string/jumbo v0, "com.waiqin365.registersuccess"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->a(Lcom/waiqin365/base/login/LoginHomeActivity;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string/jumbo v2, "REGISTER_REQUEST_COMPANY_CODE"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->a(Lcom/waiqin365/base/login/LoginHomeActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string/jumbo v2, "REGISTER_REQUEST_COMPANY_NAME"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string/jumbo v2, "REGISTER_REQUEST_USER"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->c(Lcom/waiqin365/base/login/LoginHomeActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string/jumbo v2, "REGISTER_REQUEST_PASS"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->c(Lcom/waiqin365/base/login/LoginHomeActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/view/PhoneNumEditText;->setText(Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PasswordEditText_hasForget;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PasswordEditText_hasForget;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->e(Lcom/waiqin365/base/login/LoginHomeActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/view/PasswordEditText_hasForget;->setText(Ljava/lang/String;)V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->f(Lcom/waiqin365/base/login/LoginHomeActivity;)Landroid/widget/Button;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v0

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/fiberhome/gaea/client/c/b;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->a(Lcom/waiqin365/base/login/LoginHomeActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->g(Lcom/waiqin365/base/login/LoginHomeActivity;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :cond_2
    :goto_0
    return-void

    :cond_3
    const-string/jumbo v0, "com.waiqin365.hasregister"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v0

    const-string/jumbo v1, "_phone"

    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/view/PhoneNumEditText;->setText(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->a(Lcom/waiqin365/base/login/LoginHomeActivity;)V

    goto :goto_0

    :cond_4
    const-string/jumbo v0, "com.waiqin365.modifypassword"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->a(Lcom/waiqin365/base/login/LoginHomeActivity;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string/jumbo v2, "REGISTER_REQUEST_USER"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->c(Lcom/waiqin365/base/login/LoginHomeActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string/jumbo v2, "REGISTER_REQUEST_PASS"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->b(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PhoneNumEditText;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->c(Lcom/waiqin365/base/login/LoginHomeActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/view/PhoneNumEditText;->setText(Ljava/lang/String;)V

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PasswordEditText_hasForget;

    move-result-object v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->d(Lcom/waiqin365/base/login/LoginHomeActivity;)Lcom/waiqin365/base/view/PasswordEditText_hasForget;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/LoginHomeActivity;->e(Lcom/waiqin365/base/login/LoginHomeActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/view/PasswordEditText_hasForget;->setText(Ljava/lang/String;)V

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->f(Lcom/waiqin365/base/login/LoginHomeActivity;)Landroid/widget/Button;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v0

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/fiberhome/gaea/client/c/b;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/login/ai;->a:Lcom/waiqin365/base/login/LoginHomeActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginHomeActivity;->g(Lcom/waiqin365/base/login/LoginHomeActivity;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v0

    goto/16 :goto_0

    :catch_1
    move-exception v0

    goto/16 :goto_0
.end method
